Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Experiment/touch events #278

Merged
merged 3 commits into from
Aug 7, 2017
Merged

Experiment/touch events #278

merged 3 commits into from
Aug 7, 2017

Conversation

boygirl
Copy link
Contributor

@boygirl boygirl commented Aug 2, 2017

cc/ @chrisbolin

This PR supports touch events for containers. The changes are pretty simple. Just swapping out event for event.changedTouches[0]

I also needed to add { touchAction: "none" } to container styles to prevent default touch scroll actions, since preventDefault doesn't work with passive events: (see this issue: facebook/react#8968)

@boygirl boygirl merged commit 72c2ac0 into master Aug 7, 2017
@boygirl boygirl deleted the experiment/touch-events branch August 7, 2017 22:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant